<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function Hamster() {
            Hamster.prototype = {
                run: () => {
                    alert("跑得快");
                }
            }
            this.run = () => {
                alert("跑得慢");
            };
        }

        let lazy = new Hamster();
        let speedy = new lazy.constructor();
        speedy.run = () => {
            alert("跑得很快");
        }

        speedy.run();
        run();
        lazy.run();
        lazy.constructor.prototype.run();
    </script>
</head>
<body>
<div id="root"></div>
</body>
</html>